Skip to content

Remove NodeAttributeReIndexer::reIndexNodeAttributes() on AbstractRector#7652

Merged
TomasVotruba merged 1 commit into
mainfrom
rmeove-reindex
Nov 20, 2025
Merged

Remove NodeAttributeReIndexer::reIndexNodeAttributes() on AbstractRector#7652
TomasVotruba merged 1 commit into
mainfrom
rmeove-reindex

Conversation

@samsonasik
Copy link
Copy Markdown
Member

since reindex already handled on refresh process, the reindex can be removed on AbstractRector.

Use on ChangedNodeScopeRefresher, but reindex stmts as well since StmtKeyNodeVisitor is removed on

@samsonasik
Copy link
Copy Markdown
Member Author

samsonasik commented Nov 20, 2025

All checks have passed 🎉 @TomasVotruba I think it is ready :)

It may still has a bug for removing Stmt or return array of stmts, when next visitor is from parent node which index is from parent, which not yet reindexed, but that will require fixture test of course.

@TomasVotruba
Copy link
Copy Markdown
Member

Very nice :) let's give this a go.
I wonder how can we get rid of these indexes completely and remove PHPStan custom nodes from the printer.

@TomasVotruba TomasVotruba merged commit fde2667 into main Nov 20, 2025
54 checks passed
@TomasVotruba TomasVotruba deleted the rmeove-reindex branch November 20, 2025 21:47
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants